ConfigTextLanguage = ConfigTextLanguage or Class("ConfigTextLanguage", EventDispatcher)

---@diagnostic disable-next-line: duplicate-set-field
function ConfigTextLanguage:ctor(args)
    EventDispatcher.ctor(self)
    self.id = args.id
    self.name = args.name
    self.desc = args.desc
end

function ConfigTextLanguage:changeName(name)
    self.name = name
    self:emit(ConfigEvent.ChangeLanguageName)
end

function ConfigTextLanguage:changeDesc(desc)
    self.desc = desc
    self:emit(ConfigEvent.ChangeLanguageDesc)
end